﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Business;

namespace FreshCms.BackEnd.Master
{
    public partial class FreshUI : System.Web.UI.MasterPage
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!Page.IsPostBack)
            {
                ddlWater.DataSource = InUserBusiness.GetInUserList();
                ddlWater.DataValueField = "UserId";
                ddlWater.DataTextField = "UserFullname";
                ddlWater.DataBind();
                ddlWater.Items.Insert(0, new ListItem("-- Chưa chọn --", "0"));
                Session["Water"] = "0";
            }
        }

        protected void ddlWater_SelectedIndexChanged(object sender, EventArgs e)
        {
            Session["Water"] = ddlWater.SelectedValue;
        }
    }
}